package entity;

import java.io.Serializable;
import java.time.LocalDateTime;

public class Schedule implements Serializable {
    private static final long serialVersionUID = 1L;
    private String id;
    private String movieId;
    private String hallName;
    private LocalDateTime startTime;
    private double price;

    public Schedule(String id, String movieId, String hallName, LocalDateTime startTime, double price) {
        this.id = id;
        this.movieId = movieId;
        this.hallName = hallName;
        this.startTime = startTime;
        this.price = price;
    }

    // Getter 和 Setter 方法
    public String getId() { return id; }
    public void setId(String id) { this.id = id; }
    public String getMovieId() { return movieId; }
    public void setMovieId(String movieId) { this.movieId = movieId; }
    public String getHallName() { return hallName; }
    public void setHallName(String hallName) { this.hallName = hallName; }
    public LocalDateTime getStartTime() { return startTime; }
    public void setStartTime(LocalDateTime startTime) { this.startTime = startTime; }
    public double getPrice() { return price; }
    public void setPrice(double price) { this.price = price; }

    @Override
    public String toString() {
        return "Schedule{" +
                "id='" + id + '\'' +
                ", movieId='" + movieId + '\'' +
                ", hallName='" + hallName + '\'' +
                ", startTime=" + startTime +
                ", price=" + price +
                '}';
    }
}